<template>
    <div class="container-content">
        <el-form
            ref="elForm"
            :model="formData"
            :rules="rules"
            size="medium"
            label-width="90px"
            label-position="left"
        >
            <el-collapse v-model="activeName" @change="handleClick">
                <el-collapse-item
                    :title="item.label"
                    :name="item.value"
                    v-for="item in tabData"
                    :key="item.value"
                >
                    <!-- 基本信息 -->
                    <template v-if="item.value === 'basic'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="规格型号"
                                    prop="materialEntity.model"
                                >
                                    <el-input
                                        v-model="formData.materialEntity.model"
                                        placeholder="请输入规格型号"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="助记码"
                                    prop="materialEntity.mnemonicCode"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.mnemonicCode
                                        "
                                        placeholder="请输入助记码"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="旧物料编码"
                                    prop="materialEntity.oldMaterialCode"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .oldMaterialCode
                                        "
                                        placeholder="请输入旧物料编码"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="条码"
                                    prop="materialEntity.barCode"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.barCode
                                        "
                                        placeholder="请输入条码"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="物料分组"
                                    prop="materialEntity.materialGroup"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .materialGroup
                                        "
                                        placeholder="请输入物料分组"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="物料属性"
                                    prop="materialEntity.materialProperty"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialEntity
                                                .materialProperty
                                        "
                                        placeholder="请选择"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="item in materialPropertyOptions"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        >
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="配置生产"
                                    prop="materialEntity.configurationProduction"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .configurationProduction
                                        "
                                        placeholder="请输入配置生产"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="特征件子项"
                                    prop="materialEntity.subItems"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.subItems
                                        "
                                        placeholder="请输入特征件子项"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="禁用原因"
                                    prop="materialEntity.reasonForDisable"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .reasonForDisable
                                        "
                                        placeholder="请输入禁用原因"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="存货类别"
                                    prop="materialEntity.inventoryType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .inventoryType
                                        "
                                        placeholder="请输入存货类别"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="税分类"
                                    prop="materialEntity.taxType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.taxType
                                        "
                                        placeholder="请输入税分类"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="毛重"
                                    prop="materialEntity.grossWeight"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.grossWeight
                                        "
                                        placeholder="请输入毛重"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="净重"
                                    prop="materialEntity.netWeight"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.netWeight
                                        "
                                        placeholder="请输入净重"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="重量单位"
                                    prop="materialEntity.weightUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.weightUnit
                                        "
                                        placeholder="请输入重量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="长"
                                    prop="materialEntity.lengthStr"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.lengthStr
                                        "
                                        placeholder="请输入长"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="宽"
                                    prop="materialEntity.wideStr"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.wideStr
                                        "
                                        placeholder="请输入宽"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="高"
                                    prop="materialEntity.heightStr"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.heightStr
                                        "
                                        placeholder="请输入高"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="体积"
                                    prop="materialEntity.volume"
                                >
                                    <el-input
                                        v-model="formData.materialEntity.volume"
                                        placeholder="请输入体积"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="尺寸单位"
                                    prop="materialEntity.sizeUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.sizeUnit
                                        "
                                        placeholder="请输入尺寸单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="160px"
                                    label="结算成本价加减比例%"
                                    prop="materialEntity.costPriceRatio"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .costPriceRatio
                                        "
                                        placeholder="0.00"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="数据状态"
                                    prop="materialEntity.dataState"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.dataState
                                        "
                                        placeholder="请输入数据状态"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="默认税率"
                                    prop="materialEntity.defaultTaxRate"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity
                                                .defaultTaxRate
                                        "
                                        placeholder="请输入默认税率"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="套件"
                                    prop="materialEntity.kit"
                                >
                                    <el-radio-group
                                        v-model="formData.materialEntity.kit"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(item, index) in kitOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许转资产"
                                    prop="materialEntity.allowAsset"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity.allowAsset
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowAssetOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许库存"
                                    prop="materialEntity.allowInventory"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity
                                                .allowInventory
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowInventoryOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许委外"
                                    prop="materialEntity.allowOutsource"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity
                                                .allowOutsource
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowOutsourceOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许生产"
                                    prop="materialEntity.allowProduce"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity.allowProduce
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowProduceOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许采购"
                                    prop="materialEntity.allowPurchase"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity
                                                .allowPurchase
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowPurchaseOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许销售"
                                    prop="materialEntity.allowSale"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity.allowSale
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowSaleOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="是否使用"
                                    prop="materialEntity.isUsed"
                                >
                                    <el-radio-group
                                        v-model="formData.materialEntity.isUsed"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isUsedOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="是否变更中"
                                    prop="materialEntity.isChange"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialEntity.isChange
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isChangeOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>

                            <el-col :span="24">
                                <el-form-item label="图片">
                                    <!-- :action="actionUrl" -->
                                    <el-upload
                                        action="#"
                                        class="upload-demo"
                                        ref="upload"
                                        :on-preview="handlePreview"
                                        :on-remove="handleRemove"
                                        :file-list="fileList"
                                        :auto-upload="false"
                                        list-type="picture"
                                    >
                                        <el-button
                                            slot="trigger"
                                            size="small"
                                            type="primary"
                                            ><i class="el-icon-plus"></i
                                            >添加</el-button
                                        >
                                    </el-upload>
                                </el-form-item>
                            </el-col>
                            <el-col :span="24">
                                <el-form-item
                                    label="描述"
                                    prop="materialEntity.materialDesc"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialEntity.materialDesc
                                        "
                                        type="textarea"
                                        placeholder="请输入描述"
                                        :autosize="{
                                            minRows: 4,
                                            maxRows: 4,
                                        }"
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 库存 -->
                    <template v-if="item.value === 'stock'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="库存单位"
                                    prop="materialInventoryEntity.inventoryUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .inventoryUnit
                                        "
                                        placeholder="请输入库存单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="辅助单位"
                                    prop="materialInventoryEntity.supportUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .supportUnit
                                        "
                                        placeholder="请输入辅助单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="换算方向"
                                    prop="materialInventoryEntity.convertDirection"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialInventoryEntity
                                                .convertDirection
                                        "
                                        placeholder="请选择"
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            label="库存单位-->辅助单位"
                                            value="1"
                                        >
                                        </el-option>
                                        <el-option
                                            label="辅助单位-->库存单位"
                                            value="2"
                                        >
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="仓库"
                                    prop="materialInventoryEntity.warehouseCode"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .warehouseCode
                                        "
                                        placeholder="请输入仓库"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="仓位"
                                    prop="materialInventoryEntity.warePosition"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .warePosition
                                        "
                                        placeholder="请输入仓位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="单箱标准数量"
                                    prop="materialInventoryEntity.standardNumber"
                                    label-width="100px"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .standardNumber
                                        "
                                        placeholder="请输入单箱标准数量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="盘点周期"
                                    prop="materialInventoryEntity.checkCycle"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialInventoryEntity
                                                .checkCycle
                                        "
                                        placeholder="请选择"
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .isCheck
                                        "
                                    >
                                        <el-option
                                            v-for="item in checkCycleOptions"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        >
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="天数"
                                    prop="materialInventoryEntity.day"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity.day
                                        "
                                        clearable
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .isCheck
                                        "
                                        :style="{ width: '100%' }"
                                        placeholder="请输入天数"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="必盘点"
                                    prop="materialInventoryEntity.isTrueCheck"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isTrueCheck
                                        "
                                        size="medium"
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .isCheck
                                        "
                                    >
                                        <el-option
                                            v-for="item in isTrueCheckOptions"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        >
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="批号编码规则"
                                    label-width="100px"
                                    prop="materialInventoryEntity.batchRule"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .batchRule
                                        "
                                        placeholder="请输入批号编码规则"
                                        clearable
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .isBatch
                                        "
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="保质期单位"
                                    prop="materialInventoryEntity.qualityUnit"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialInventoryEntity
                                                .qualityUnit
                                        "
                                        placeholder="请选择下拉选择"
                                        clearable
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .qualityManage
                                        "
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in qualityUnitOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="保质期"
                                    prop="materialInventoryEntity.qualityNum"
                                >
                                    <el-input
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .qualityManage
                                        "
                                        v-model="
                                            formData.materialInventoryEntity
                                                .qualityNum
                                        "
                                        placeholder="请输入保质期"
                                        clearable
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="100px"
                                    label="批号附属信息"
                                    prop="materialInventoryEntity.batchInfo"
                                >
                                    <el-select
                                        placeholder="请选择"
                                        clearable
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialInventoryEntity
                                                .qualityManage
                                        "
                                        v-model="
                                            formData.materialInventoryEntity
                                                .batchInfo
                                        "
                                    >
                                        <el-option
                                            label="是"
                                            value="1"
                                        ></el-option>
                                        <el-option
                                            label="否"
                                            value="0"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="参考成本"
                                    prop="materialInventoryEntity.referenceCost"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .referenceCost
                                        "
                                        placeholder="请输入参考成本"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="成本单位"
                                    prop="materialInventoryEntity.costUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .costUnit
                                        "
                                        placeholder="请输入成本单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="币别"
                                    prop="materialInventoryEntity.currency"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .currency
                                        "
                                        placeholder="请输入币别"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="最小库存"
                                    prop="materialInventoryEntity.minInventoryNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .minInventoryNum
                                        "
                                        placeholder="请输入最小库存"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="安全库存"
                                    prop="materialInventoryEntity.safeInventoryNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .safeInventoryNum
                                        "
                                        placeholder="请输入安全库存"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="再订货点"
                                    prop="materialInventoryEntity.orderGoodsNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .orderGoodsNum
                                        "
                                        placeholder="请输入再订货点"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="经济订货批量"
                                    label-width="100px"
                                    prop="materialInventoryEntity.economicOrderingBatch"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .economicOrderingBatch
                                        "
                                        placeholder="请输入经济订货批量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最大库存"
                                    prop="materialInventoryEntity.maxInventoyNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialInventoryEntity
                                                .maxInventoyNum
                                        "
                                        placeholder="请输入最大库存"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用周期盘点"
                                    prop="materialInventoryEntity.isCheck"
                                    label-width="100px"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isCheck
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isCheckOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="可锁库"
                                    prop="materialInventoryEntity.isLock"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isLock
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isLockOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用批号"
                                    prop="materialInventoryEntity.isBatch"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isBatch
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isBatchOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="130px"
                                    label="启用保质期管理"
                                    prop="materialInventoryEntity.qualityManage"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .qualityManage
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in qualityManageOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小库存预警"
                                    label-width="100px"
                                    prop="materialInventoryEntity.isMinInventory"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isMinInventory
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isMinInventoryOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最大库存预警"
                                    label-width="100px"
                                    prop="materialInventoryEntity.isMaxInventory"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isMaxInventory
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isMaxInventoryOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="安全库存预警"
                                    label-width="100px"
                                    prop="materialInventoryEntity.isSafeInventory"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isSafeInventory
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isSafeInventoryOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="再订货点预警"
                                    label-width="100px"
                                    prop="materialInventoryEntity.isOrderGoods"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialInventoryEntity
                                                .isOrderGoods
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isOrderGoodsOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 销售 -->
                    <template v-if="item.value === 'sale'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="销售单位"
                                    prop="materialSaleEntity.saleUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity.saleUnit
                                        "
                                        placeholder="请输入销售单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="销售计价单位"
                                    label-width="110px"
                                    prop="materialSaleEntity.salePricingUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .salePricingUnit
                                        "
                                        placeholder="请输入销售计价单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="起订量"
                                    prop="materialSaleEntity.startOrderNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .startOrderNum
                                        "
                                        placeholder="请输入起订量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="超发控制单位"
                                    label-width="100px"
                                    prop="materialSaleEntity.controlSurpassUnit"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialSaleEntity
                                                .controlSurpassUnit
                                        "
                                        placeholder="请输入超发控制单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in controlSurpassUnitOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="超发上限"
                                    prop="materialSaleEntity.surpassUp"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .surpassUp
                                        "
                                        placeholder="请输入超发上限"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="超发下限"
                                    prop="materialSaleEntity.surpassDown"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .surpassDown
                                        "
                                        placeholder="请输入超发下限"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="150px"
                                    label="代理销售减价比例"
                                    prop="materialSaleEntity.saleDownPrice"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .saleDownPrice
                                        "
                                        placeholder="请输入代理销售减价比例"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="税收分类编码"
                                    prop="taxTypeCode"
                                    label-width="100px"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .taxTypeCode
                                        "
                                        placeholder="请输入税收分类编码"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="150px"
                                    label="享受税收优惠政策"
                                    prop="materialSaleEntity.isFavourableTax"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialSaleEntity
                                                .isFavourableTax
                                        "
                                        placeholder="请选择"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in isFavourableTaxOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="150px"
                                    label="税收优惠政策类型"
                                    prop="materialSaleEntity.taxTypeCode"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .taxTypeCode
                                        "
                                        placeholder="请输入税收优惠政策类型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="销售组"
                                    prop="materialSaleEntity.saleGroup"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialSaleEntity
                                                .saleGroup
                                        "
                                        placeholder="请输入销售组"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item label="ATP检查" prop="atpCheck">
                                    <el-radio-group
                                        v-model="formData.atpCheck"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in atpCheckOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许退货"
                                    prop="allowReturns"
                                >
                                    <el-radio-group
                                        v-model="formData.allowReturns"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowReturnsOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="130px"
                                    label="允许发布订货平台"
                                    prop="allowReleaseOrder"
                                >
                                    <el-radio-group
                                        v-model="formData.allowReleaseOrder"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in allowReleaseOrderOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label-width="130px"
                                    label="不参与可发量统计"
                                    prop="dropOutCount"
                                >
                                    <el-radio-group
                                        v-model="formData.dropOutCount"
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in dropOutCountOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 采购 -->
                    <template v-if="item.value === 'purchase'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="采购单位"
                                    prop="materialProcureEntity.procureUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .procureUnit
                                        "
                                        placeholder="请输入采购单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="采购计价单位"
                                    label-width="110px"
                                    prop="materialProcureEntity.procurePricingUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .procurePricingUnit
                                        "
                                        placeholder="请输入采购计价单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="采购组织"
                                    prop="materialProcureEntity.procureGroup"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .procureGroup
                                        "
                                        placeholder="请输入采购组织"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="采购员"
                                    prop="materialProcureEntity.procureId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .procureId
                                        "
                                        placeholder="请输入采购员"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="默认供应商"
                                    prop="materialProcureEntity.defaultSupplier"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .defaultSupplier
                                        "
                                        placeholder="请输入默认供应商"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="费用项目"
                                    prop="materialProcureEntity.expenseItem"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .expenseItem
                                        "
                                        placeholder="请输入费用项目"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="收货上限比例"
                                    label-width="100px"
                                    prop="materialProcureEntity.takeOverUp"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .takeOverUp
                                        "
                                        placeholder="请输入收货上限比例"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="收货下限比例"
                                    label-width="100px"
                                    prop="materialProcureEntity.takeOverDown"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .takeOverDown
                                        "
                                        placeholder="请输入收货下限比例"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="收货提前天数"
                                    label-width="100px"
                                    prop="materialProcureEntity.takeOverLead"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .takeOverLead
                                        "
                                        placeholder="请输入收货提前天数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="收货延迟天数"
                                    label-width="100px"
                                    prop="materialProcureEntity.takeOverDelay"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .takeOverDelay
                                        "
                                        placeholder="请输入收货延迟天数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="代理采购加成比例"
                                    label-width="130px"
                                    prop="materialProcureEntity.agentProcure"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .agentProcure
                                        "
                                        placeholder="%"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="采购类型"
                                    prop="materialProcureEntity.procureType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .procureType
                                        "
                                        placeholder="请输入采购类型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>

                        <!-- <div class="desc-title">条码管理</div> -->
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="默认条码规则"
                                    label-width="100px"
                                    prop="materialProcureEntity.barCodeRule"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .barCodeRule
                                        "
                                        placeholder="请输入默认条码规则"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小打包数"
                                    prop="materialProcureEntity.minPackNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .minPackNum
                                        "
                                        placeholder="请输入最小打包数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="重复打印数"
                                    prop="materialProcureEntity.repeatPutNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .repeatPutNum
                                        "
                                        placeholder="请输入重复打印数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <!-- <div class="desc-title">委外</div> -->
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="委外单位"
                                    prop="materialProcureEntity.outsourceUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .outsourceUnit
                                        "
                                        placeholder="请输入委外单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="委外计价单位"
                                    label-width="100px"
                                    prop="materialProcureEntity.outsourcePricingUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .outsourcePricingUnit
                                        "
                                        placeholder="请输入委外计价单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="委外类型"
                                    prop="materialProcureEntity.outsourceType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .outsourceType
                                        "
                                        placeholder="请输入委外类型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <!-- <div class="desc-title">日计划</div> -->
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="日产量"
                                    prop="materialProcureEntity.dayProduction"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .dayProduction
                                        "
                                        placeholder="请输入日产量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="日产量单位"
                                    label-width="110px"
                                    prop="materialProcureEntity.dayProductionUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .dayProductionUnit
                                        "
                                        placeholder="请输入日产量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="默认产线"
                                    prop="materialProcureEntity.defunctProductionLine"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .defunctProductionLine
                                        "
                                        placeholder="请输入默认产线"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <!-- <div class="desc-title">其他</div> -->

                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="配额管理"
                                    prop="materialProcureEntity.isQuota"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProcureEntity
                                                .isQuota
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isQuotaOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="配额方式"
                                    prop="materialProcureEntity.quotaMode"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProcureEntity
                                                .quotaMode
                                        "
                                        placeholder="请选择下拉选择配额方式"
                                        clearable
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialProcureEntity
                                                .isQuota
                                        "
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in quotaModeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小拆分数量"
                                    label-width="100px"
                                    prop="materialProcureEntity.minSpiltNum"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProcureEntity
                                                .minSpiltNum
                                        "
                                        placeholder="请选择最小拆分数量"
                                        clearable
                                        :style="{ width: '100%' }"
                                        :disabled="
                                            !formData.materialProcureEntity
                                                .isQuota
                                        "
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <!-- <div class="desc-title">采购控制</div> -->
                        <el-row :gutter="15">
                            <!-- <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px"> -->
                            <el-col :span="8">
                                <el-form-item
                                    label="需要请购"
                                    prop="materialProcureEntity.isReq"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProcureEntity.isReq
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isReqOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="货源控制"
                                    prop="materialProcureEntity.isControl"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProcureEntity
                                                .isControl
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isControlOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许退料"
                                    prop="materialProcureEntity.isMaterialReturn"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProcureEntity
                                                .isMaterialReturn
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isMaterialReturnOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="启用日排产"
                                    prop="materialProcureEntity.isDayProduction"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProcureEntity
                                                .isDayProduction
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in isDayProductionOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 质量 -->
                    <template v-if="item.value === 'quality'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="复检周期"
                                    prop="materialQualityEntity.fStockCycle"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fStockCycle
                                        "
                                        placeholder="天"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="提醒提前期"
                                    prop="materialQualityEntity.fEWLeadDay"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fEWLeadDay
                                        "
                                        placeholder="天"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="抽样方案"
                                    prop="materialQualityEntity.fIncSampSchemeId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fIncSampSchemeId
                                        "
                                        placeholder="请输入抽样方案"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="质检组"
                                    prop="materialQualityEntity.fInspectGroupId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fInspectGroupId
                                        "
                                        placeholder="请输入质检组"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="质检方案"
                                    prop="materialQualityEntity.fIncQcSchemeId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fIncQcSchemeId
                                        "
                                        placeholder="请输入质检方案"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="质检员"
                                    prop="materialQualityEntity.fInspectorId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialQualityEntity
                                                .fInspectorId
                                        "
                                        placeholder="请输入质检员"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="首检控制方式"
                                    label-width="110px"
                                    prop="materialQualityEntity.fFirstQCControlType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialQualityEntity
                                                .fFirstQCControlType
                                        "
                                        placeholder="请选择"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fFirstQCControlTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="来料检验"
                                    prop="materialQualityEntity.fCheckIncoming"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckIncoming
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckIncomingOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="产品检验"
                                    prop="materialQualityEntity.fCheckProduct"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckProduct
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckProductOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="产品首检"
                                    prop="materialQualityEntity.fIsFirstInspect"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fIsFirstInspect
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsFirstInspectOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="库存检验"
                                    prop="materialQualityEntity.fCheckStock"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckStock
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckStockOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="退货检验"
                                    prop="materialQualityEntity.fCheckReturn"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckReturn
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckReturnOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="发货检验"
                                    prop="materialQualityEntity.fCheckDelivery"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckDelivery
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckDeliveryOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="受托材料检验"
                                    label-width="100px"
                                    prop="materialQualityEntity.fCheckEntrusted"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckEntrusted
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckEntrustedOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="委外退料检验"
                                    label-width="100px"
                                    prop="materialQualityEntity.fCheckSubFtnMtrl"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fCheckSubFtnMtrl
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fCheckSubFtnMtrlOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用库存周期复检"
                                    label-width="130px"
                                    prop="materialQualityEntity.fEnableCyclistQCSTK"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fEnableCyclistQCSTK
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fEnableCyclistQCSTKOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用库存周期复检提醒"
                                    label-width="160px"
                                    prop="materialQualityEntity.fEnableCyclistQcstkew"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialQualityEntity
                                                .fEnableCyclistQcstkew
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fEnableCyclistQcstkewOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 生产 -->
                    <template v-if="item.value === 'production'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="生产车间"
                                    prop="materialProductEntity.fWorkShopId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fWorkShopId
                                        "
                                        placeholder="请输入生产车间"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="生产单位"
                                    prop="materialProductEntity.fProduceUnitId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fProduceUnitId
                                        "
                                        placeholder="请输入生产单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="入库超收比例"
                                    label-width="100px"
                                    prop="materialProductEntity.fFinishReceiptOverRate"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fFinishReceiptOverRate
                                        "
                                        placeholder="请输入入库超收比例"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="入库欠收比例"
                                    label-width="100px"
                                    prop="materialProductEntity.fFinishReceiptShortRate"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fFinishReceiptShortRate
                                        "
                                        placeholder="请输入入库欠收比例"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="生产类型"
                                    prop="materialProductEntity.fProduceBillType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fProduceBillType
                                        "
                                        placeholder="请输入生产类型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="组织间受托类型"
                                    label-width="110px"
                                    prop="materialProductEntity.fOrgTrustBillType"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fOrgTrustBillType
                                        "
                                        placeholder="请输入组织间受托类型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="倒冲数量"
                                    prop="materialProductEntity.fBackFlushType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProductEntity
                                                .fBackFlushType
                                        "
                                        placeholder="请选择"
                                        clearable
                                        style="width: 100%"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fBackFlushTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="子项单位"
                                    prop="materialProductEntity.fbomunitid"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fbomunitid
                                        "
                                        placeholder="请选择子项单位"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="消耗波动"
                                    prop="materialProductEntity.fConsumVolatility	"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fConsumVolatility
                                        "
                                        placeholder="请选择消耗波动"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="变动损耗率"
                                    prop="materialProductEntity.flosspercent"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .flosspercent
                                        "
                                        placeholder="请选择变动损耗率"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="固定损耗"
                                    prop="materialProductEntity.ffixloss"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .ffixloss
                                        "
                                        placeholder="请选择固定损耗"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="发料方式"
                                    prop="materialProductEntity.fIssueType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProductEntity
                                                .fIssueType
                                        "
                                        placeholder="请选择"
                                        clearable
                                        style="width: 100%"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fIssueTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="倒冲时机"
                                    prop="materialProductEntity.fbkfltime"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProductEntity
                                                .fbkfltime
                                        "
                                        placeholder="请选择"
                                        clearable
                                        style="width: 100%"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fbkfltimeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="发料仓库"
                                    prop="materialProductEntity.fPickStockId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fPickStockId
                                        "
                                        placeholder="请输入发料仓库"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="发料仓位"
                                    prop="materialProductEntity.fPickBinId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fPickBinId
                                        "
                                        placeholder="请输入发料仓位"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="超发控制方式"
                                    label-width="110px"
                                    prop="materialProductEntity.fOverControlMode"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProductEntity
                                                .fOverControlMode
                                        "
                                        placeholder="请选择"
                                        clearable
                                        style="width: 100%"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fOverControlModeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小发料批量"
                                    label-width="100px"
                                    prop="materialProductEntity.fMinissueQty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fMinissueQty
                                        "
                                        placeholder="请输入最小发料批量"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小发料批量单位"
                                    label-width="140px"
                                    prop="materialProductEntity.fMinissueUnitId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fMinissueUnitId
                                        "
                                        placeholder="请输入最小发料批量单位"
                                        clearable
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="默认产线"
                                    prop="materialProductEntity.fDefaultLineId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fDefaultLineId
                                        "
                                        placeholder="请输入默认产线"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="默认工艺路线"
                                    label-width="100px"
                                    prop="materialProductEntity.fDefaultRouting"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fDefaultRouting
                                        "
                                        placeholder="请输入默认工艺路线"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="标准工时"
                                    prop="materialProductEntity.fPerUnitStandHour"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fPerUnitStandHour
                                        "
                                        placeholder="请输入标准工时"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="工时单位"
                                    prop="materialProductEntity.fStandHourUnitId"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialProductEntity
                                                .fStandHourUnitId
                                        "
                                        placeholder="请输入工时单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fStandHourUnitIdOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="标准人员准备工时"
                                    label-width="130px"
                                    prop="materialProductEntity.fStdLaborPrePareTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fStdLaborPrePareTime
                                        "
                                        placeholder="请输入标准人员准备工时"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="标准人员实作工时"
                                    label-width="130px"
                                    prop="materialProductEntity.fStdLaborProcessTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fStdLaborProcessTime
                                        "
                                        placeholder="请输入标准人员实作工时"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="标准机器准备工时"
                                    label-width="130px"
                                    prop="materialProductEntity.fStdMachinePrepareTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fStdMachinePrepareTime
                                        "
                                        placeholder="请输入标准机器准备工时"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="标准机器实作工时"
                                    label-width="130px"
                                    prop="materialProductEntity.fStdMachineProcessTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fStdMachineProcessTime
                                        "
                                        placeholder="请输入标准机器实作工时"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="产品模型"
                                    prop="materialProductEntity.fMdlId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fMdlId
                                        "
                                        placeholder="请输入产品模型"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="模型物料"
                                    prop="materialProductEntity.fMdlMaterialId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialProductEntity
                                                .fMdlMaterialId
                                        "
                                        placeholder="请输入模型物料"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="生产线生产"
                                    prop="materialProductEntity.fIsProductLine"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsProductLine
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsProductLineOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="序列号携带到父项"
                                    label-width="140px"
                                    prop="materialProductEntity.fIsSNCarryToParent"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsSNCarryToParent
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsSNCarryToParentOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="可为主产品"
                                    prop="materialProductEntity.fIsMainPrd"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsMainPrd
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsMainPrdOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用ECN"
                                    prop="materialProductEntity.fisecn"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fisecn
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fisecnOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="领料考虑最小发料批量"
                                    label-width="160px"
                                    prop="materialProductEntity.fIsMinissueQty"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsMinissueQty
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsMinissueQtyOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="是否关键件"
                                    prop="materialProductEntity.fIsKitting"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsKitting
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsKittingOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="启用日排产"
                                    prop="materialProductEntity.fIsEnableSchedule"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsEnableSchedule
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsEnableScheduleOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="是否齐套件"
                                    prop="materialProductEntity.fIsCompleteSet"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialProductEntity
                                                .fIsCompleteSet
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsCompleteSetOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <!-- 计划 -->
                    <template v-if="item.value === 'plan'">
                        <el-row :gutter="15">
                            <el-col :span="8">
                                <el-form-item
                                    label="计划策略"
                                    prop="materialPlanAttribute.fPlanningStrategy"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanningStrategy
                                        "
                                        placeholder="请输入计划策略"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fPlanningStrategyOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="制造策略"
                                    prop="materialPlanAttribute.fMfgPolicyId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fMfgPolicyId
                                        "
                                        placeholder="请输入制造策略"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="计划区"
                                    prop="materialPlanAttribute.fPlanWorkshop"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanWorkshop
                                        "
                                        placeholder="请输入计划区"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="固定提前期"
                                    prop="materialPlanAttribute.fFixLeadTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fFixLeadTime
                                        "
                                        placeholder="请输入固定提前期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="固定提前期单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fFixLeadTimeType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fFixLeadTimeType
                                        "
                                        placeholder="请输入固定提前期单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fFixLeadTimeTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="变动提前期"
                                    prop="materialPlanAttribute.fVarLeadTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fVarLeadTime
                                        "
                                        placeholder="请输入变动提前期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="变动提前期单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fVarLeadTimeType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fVarLeadTimeType
                                        "
                                        placeholder="请输入变动提前期单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fVarLeadTimeTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="检验提前期"
                                    prop="materialPlanAttribute.fCheckLeadTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fCheckLeadTime
                                        "
                                        placeholder="请输入检验提前期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="检验提前期单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fCheckLeadTimeType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fCheckLeadTimeType
                                        "
                                        placeholder="请输入检验提前期单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fCheckLeadTimeTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="订货间隔期"
                                    prop="materialPlanAttribute.fOrderIntervalTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fOrderIntervalTime
                                        "
                                        placeholder="请输入订货间隔期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="订货间隔期单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fOrderIntervalTimeType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fOrderIntervalTimeType
                                        "
                                        placeholder="请输入订货间隔期单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fOrderIntervalTimeTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最大订货量"
                                    label-width="100px"
                                    prop="materialPlanAttribute.fMaxPoqty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fMaxPoqty
                                        "
                                        placeholder="请输入最大订货量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最大订货量单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fMaxPoqtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fMaxPoqtyUnit
                                        "
                                        placeholder="请输入最小订货量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小订货量"
                                    prop="materialPlanAttribute.fMinPoqty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fMinPoqty
                                        "
                                        placeholder="请输入最小订货量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小订货量单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fMinPoqtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fMinPoqtyUnit
                                        "
                                        placeholder="请输入最小订货量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小包装量"
                                    prop="materialPlanAttribute.fIncreaseQty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fIncreaseQty
                                        "
                                        placeholder="请输入最小包装量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="最小包装量单位"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fIncreaseQtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fIncreaseQtyUnit
                                        "
                                        placeholder="请输入最小包装量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="固定/经济批量"
                                    label-width="110px"
                                    prop="materialPlanAttribute.fBaseVarLeadTimeLotSize"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fBaseVarLeadTimeLotSize
                                        "
                                        placeholder="请输入固定/经济批量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="固定/经济批量单位"
                                    label-width="140px"
                                    prop="materialPlanAttribute.fBaseVarLeadTimeLotSizeUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fBaseVarLeadTimeLotSizeUnit
                                        "
                                        placeholder="请输入固定/经济批量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="变动提前期批量"
                                    label-width="120px"
                                    prop="materialPlanAttribute.fVarLeadTimeLotSize"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fVarLeadTimeLotSize
                                        "
                                        placeholder="请输入变动提前期批量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="变动提前期批量单位"
                                    label-width="150px"
                                    prop="materialPlanAttribute.fVarLeadTimeLotSizeUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fVarLeadTimeLotSizeUnit
                                        "
                                        placeholder="请输入变动提前期批量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="拆分批量"
                                    prop="materialPlanAttribute.fPlanBatchSplitQty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanBatchSplitQty
                                        "
                                        placeholder="请输入拆分批量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="拆分批量单位"
                                    label-width="110px"
                                    prop="materialPlanAttribute.fPlanBatchSplitQtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanBatchSplitQtyUnit
                                        "
                                        placeholder="请输入拆分批量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="批量拆分间隔天数"
                                    label-width="130px"
                                    prop="materialPlanAttribute.fPlanIntervalsDays"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanIntervalsDays
                                        "
                                        placeholder="请输入批量拆分间隔天数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="需求时界"
                                    prop="materialPlanAttribute.fRequestTimeZone"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fRequestTimeZone
                                        "
                                        placeholder="请输入需求时界"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="计划时界"
                                    prop="materialPlanAttribute.fPlanTimeZone"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanTimeZone
                                        "
                                        placeholder="请输入计划时界"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="计划组"
                                    prop="materialPlanAttribute.fPlanGroupId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanGroupId
                                        "
                                        placeholder="请输入计划组"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="计划员"
                                    prop="materialPlanAttribute.fPlanerId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanerId
                                        "
                                        placeholder="请输入计划员"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="计划标识"
                                    prop="materialPlanAttribute.fPlanIdent"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanIdent
                                        "
                                        placeholder="请输入计划标识"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="安全库存"
                                    prop="materialPlanAttribute.fPlanSafeStockQty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanSafeStockQty
                                        "
                                        placeholder="请输入安全库存"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="安全库存单位"
                                    label-width="110px"
                                    prop="materialPlanAttribute.fPlanSafeStockQtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanSafeStockQtyUnit
                                        "
                                        placeholder="请输入安全库存单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="产品系列"
                                    prop="materialPlanAttribute.fProductLine"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fProductLine
                                        "
                                        placeholder="请输入产品系列"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="冲销数量"
                                    prop="materialPlanAttribute.fWriteOffQty"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fWriteOffQty
                                        "
                                        placeholder="请输入冲销数量"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="冲销数量单位"
                                    label-width="110px"
                                    prop="materialPlanAttribute.fWriteOffQtyUnit"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fWriteOffQtyUnit
                                        "
                                        placeholder="请输入冲销数量单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="允许提前天数"
                                    label-width="100px"
                                    prop="materialPlanAttribute.fCanLeadDays"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fCanLeadDays
                                        "
                                        placeholder="请输入允许提前天数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="提前宽限期"
                                    prop="materialPlanAttribute.fLeadExtendDay"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fLeadExtendDay
                                        "
                                        placeholder="请输入提前宽限期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>

                            <el-col :span="8">
                                <el-form-item
                                    label="允许延后天数"
                                    label-width="100px"
                                    prop="materialPlanAttribute.fCanDelayDays"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fCanDelayDays
                                        "
                                        placeholder="请输入允许延后天数"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="延后宽限期"
                                    prop="materialPlanAttribute.fDelayExtendDay"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fDelayExtendDay
                                        "
                                        placeholder="请输入延后宽限期"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="时间单位"
                                    prop="materialPlanAttribute.fPlanOffsetTimeType"
                                >
                                    <el-select
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanOffsetTimeType
                                        "
                                        placeholder="请输入时间单位"
                                        clearable
                                        :style="{ width: '100%' }"
                                    >
                                        <el-option
                                            v-for="(
                                                item, index
                                            ) in fPlanOffsetTimeTypeOptions"
                                            :key="index"
                                            :label="item.label"
                                            :value="item.value"
                                            :disabled="item.disabled"
                                        ></el-option>
                                    </el-select>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="偏置时间"
                                    prop="materialPlanAttribute.fPlanOffsetTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanOffsetTime
                                        "
                                        placeholder="请输入偏置时间"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="供应来源"
                                    prop="materialPlanAttribute.fPlanOffsetTime"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fPlanOffsetTime
                                        "
                                        placeholder="请输入供应来源"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="订单进度分组"
                                    label-width="100px"
                                    prop="materialPlanAttribute.fProScheTrackId"
                                >
                                    <el-input
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fProScheTrackId
                                        "
                                        placeholder="请输入订单进度分组"
                                        clearable
                                        :style="{ width: '100%' }"
                                    ></el-input>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="MRP计算是否按单合并"
                                    label-width="160px"
                                    prop="materialPlanAttribute.fIsMrpComBill"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fIsMrpComBill
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsMrpComBillOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="MRP计算是否合并需求"
                                    label-width="160px"
                                    prop="materialPlanAttribute.fIsMrpComReq"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fIsMrpComReq
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fIsMrpComReqOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                            <el-col :span="8">
                                <el-form-item
                                    label="预计入库允许部分延后"
                                    label-width="160px"
                                    prop="materialPlanAttribute.fAllowPartDelay"
                                >
                                    <el-radio-group
                                        v-model="
                                            formData.materialPlanAttribute
                                                .fAllowPartDelay
                                        "
                                        size="medium"
                                    >
                                        <el-radio
                                            v-for="(
                                                item, index
                                            ) in fAllowPartDelayOptions"
                                            :key="index"
                                            :label="item.value"
                                            :disabled="item.disabled"
                                            border
                                            >{{ item.label }}</el-radio
                                        >
                                    </el-radio-group>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                </el-collapse-item>
            </el-collapse>
            <!-- <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
                <el-tab-pane
                    :label="item.label"
                    :name="item.value"
                    v-for="item in tabData"
                    :key="item.value"
                >
                </el-tab-pane>
            </el-tabs> -->
        </el-form>
    </div>
</template>
<script>
import { actionUrl } from "@/api/system/upload";
import { add } from "@/api/base/data";
import { updataMaterialList,editMaterialList } from "@/api/bim/outher";
export default {
     props: ["id"],
    data() {
        return {
            flag:false,
            activeName: [
                "basic",
                "stock",
                "sale",
                "purchase",
                "quality",
                "production",
                "plan",
            ],
            tabData: [
                {
                    label: "基本",
                    value: "basic",
                },
                {
                    label: "库存",
                    value: "stock",
                },
                {
                    label: "销售",
                    value: "sale",
                },
                {
                    label: "采购",
                    value: "purchase",
                },
                {
                    label: "质量",
                    value: "quality",
                },
                {
                    label: "生产",
                    value: "production",
                },
                {
                    label: "计划",
                    value: "plan",
                },
            ],
            formData: {
                materialEntity: {
                    allowAsset: "",
                    allowInventory: "",
                    allowOutsource: "",
                    allowProduce: "",
                    allowPurchase: "",
                    allowSale: "",
                    barCode: "",
                    brand: "",
                    businessType: "",
                    configurationProduction: "",
                    costPriceRatio: "",
                    createBy: "",
                    createTime: "",
                    dataState: "",
                    defaultTaxRate: "",
                    deptId: "",
                    disableBy: "",
                    examineBy: "",
                    examineTime: "",
                    grossWeight: "",
                    heightStr: "",
                    id: "",
                    imgUrl: "",
                    instanceId: "",
                    inventoryType: "",
                    isChange: "",

                    kit: "",
                    lengthStr: "",
                    materialCode: "",
                    materialDesc: "",
                    materialGroup: "",
                    materialName: "",
                    materialProperty: "",
                    mnemonicCode: "",
                    model: "",
                    modelId: "",
                    netWeight: "",
                    oldMaterialCode: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    reasonForDisable: "",
                    remark: "",
                    searchValue: "",
                    sizeUnit: "",
                    state: "",
                    subItems: "",
                    taxType: "",
                    unit: "",
                    updateBy: "",
                    updateTime: "",
                    volume: "",
                    weightUnit: "",
                    wideStr: "",
                },
                materialInventoryEntity: {
                    batchInfo: "",
                    batchRule: "",
                    checkCycle: "",
                    convertDirection: "",
                    costUnit: "",
                    createBy: "",
                    createTime: "",
                    currency: "",
                    day: "",
                    economicOrderingBatch: "",
                    id: "",
                    inventoryUnit: "",
                    isBatch: "",
                    isCheck: "",
                    isLock: "",
                    isMaxInventory: "",
                    isMinInventory: "",
                    isOrderGoods: "",
                    isSafeInventory: "",
                    isTrueCheck: "",
                    materialId: "",
                    maxInventoyNum: "",
                    minInventoryNum: "",
                    orderGoodsNum: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    qualityManage: "",
                    qualityNum: "",
                    qualityUnit: "",
                    referenceCost: "",
                    remark: "",
                    safeInventoryNum: "",
                    searchValue: "",
                    serviceLife: "",
                    standardNumber: "",
                    supportUnit: "",
                    updateBy: "",
                    updateTime: "",
                    warePosition: "",
                    warehouseCode: "",
                },
                materialPlanAttribute: {
                    createBy: "",
                    createTime: "",
                    fAllowPartDelay: "",
                    fBaseVarLeadTimeLotSize: "",
                    fBaseVarLeadTimeLotSizeUnit: "",
                    fCanDelayDays: 0,
                    fCanLeadDays: 0,
                    fCheckLeadTime: 0,
                    fCheckLeadTimeType: "",
                    fDelayExtendDay: 0,
                    fFixLeadTime: 0,
                    fFixLeadTimeType: "",
                    fIncreaseQty: 0,
                    fIncreaseQtyUnit: "",
                    fIsMrpComBill: "",
                    fIsMrpComReq: "",
                    fLeadExtendDay: 0,
                    fMaxPoqty: 0,
                    fMfgPolicyId: "",
                    fMinPoqty: 0,
                    fMinPoqtyUnit: "",
                    fOrderIntervalTime: 0,
                    fOrderIntervalTimeType: "",
                    fOrderPolicy: "",
                    fPlanBatchSplitQty: "",
                    fPlanBatchSplitQtyUnit: "",
                    fPlanGroupId: "",
                    fPlanIdent: "",
                    fPlanIntervalsDays: 0,
                    fPlanOffsetTime: 0,
                    fPlanOffsetTimeType: "",
                    fPlanSafeStockQty: 0,
                    fPlanSafeStockQtyUnit: "",
                    fPlanTimeZone: 0,
                    fPlanWorkshop: "",
                    fPlanerId: "",
                    fPlanningStrategy: "",
                    fProScheTrackId: "",
                    fProductLine: "",
                    fRequestTimeZone: 0,
                    fSupplySourceId: "",
                    fVarLeadTime: 0,
                    fVarLeadTimeLotSize: "",
                    fVarLeadTimeLotSizeUnit: "",
                    fVarLeadTimeType: "",
                    fWriteOffQty: "",
                    fWriteOffQtyUnit: "",
                    id: "",
                    materialId: "",
                    maxPoqtyUnit: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    remark: "",
                    searchValue: "",
                    updateBy: "",
                    updateTime: "",
                },
                materialProcureEntity: {
                    agentProcure: "",
                    barCodeRule: "",
                    createBy: "",
                    createTime: "",
                    dayProduction: 0,
                    dayProductionUnit: "",
                    defaultSupplier: "",
                    defunctProductionLine: "",
                    expenseItem: "",
                    id: "",
                    isControl: "",
                    isDayProduction: "",
                    isMaterialReturn: "",
                    isQuota: "",
                    isReq: "",
                    materialId: "",
                    minPackNum: "",
                    minSpiltNum: 0,
                    outsourcePricingUnit: "",
                    outsourceType: "",
                    outsourceUnit: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    procureGroup: "",
                    procureId: "",
                    procurePricingUnit: "",
                    procureType: "",
                    procureUnit: "",
                    quotaMode: "",
                    remark: "",
                    repeatPutNum: "",
                    searchValue: "",
                    takeOverDelay: 0,
                    takeOverDown: "",
                    takeOverLead: 0,
                    takeOverUp: "",
                    updateBy: "",
                    updateTime: "",
                },
                materialProductEntity: {
                    createBy: "",
                    createTime: "",
                    deptId: "",
                    fBackFlushType: "",
                    fConsumVolatility: "",
                    fDefaultLineId: "",
                    fDefaultRouting: "",
                    fFinishReceiptOverRate: "",
                    fFinishReceiptShortRate: "",
                    fIsCompleteSet: "",
                    fIsEnableSchedule: "",
                    fIsKitting: "",
                    fIsMainPrd: "",
                    fIsMinissueQty: "",
                    fIsProductLine: "",
                    fIsSNCarryToParent: "",
                    fIssueType: "",
                    fMdlId: "",
                    fMdlMaterialId: "",
                    fMinissueQty: 0,
                    fMinissueUnitId: "",
                    fOrgTrustBillType: "",
                    fOverControlMode: "",
                    fPerUnitStandHour: "",
                    fPickBinId: "",
                    fPickStockId: "",
                    fProduceBillType: "",
                    fProduceUnitId: "",
                    fStandHourUnitId: "",
                    fStdLaborPrePareTime: "",
                    fStdLaborProcessTime: "",
                    fStdMachinePrepareTime: "",
                    fStdMachineProcessTime: "",
                    fWorkShopId: "",
                    fbkfltime: "",
                    fbomunitid: "",
                    ffixloss: "",
                    fisecn: "",
                    flosspercent: "",
                    id: "",
                    materialId: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    remark: "",
                    searchValue: "",
                    updateBy: "",
                    updateTime: "",
                },
                materialQualityEntity: {
                    createBy: "",
                    createTime: "",
                    fCheckDelivery: "",
                    fCheckEntrusted: "",
                    fCheckIncoming: 0,
                    fCheckOther: "",
                    fCheckProduct: "",
                    fCheckReturn: "",
                    fCheckStock: "",
                    fCheckSubFtnMtrl: "",
                    fEWLeadDay: "",
                    fEnableCyclistQCSTK: "",
                    fEnableCyclistQcstkew: "",
                    fFirstQCControlType: "",
                    fIncQcSchemeId: "",
                    fIncSampSchemeId: "",
                    fInspectGroupId: "",
                    fInspectorId: "",
                    fIsFirstInspect: "",
                    fStockCycle: "",
                    id: "",
                    materialId: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    remark: "",
                    searchValue: "",
                    updateBy: "",
                    updateTime: "",
                },
                materialSaleEntity: {
                    allowReleaseOrder: "",
                    allowReturns: "",
                    atpCheck: "",
                    controlSurpassUnit: "",
                    createBy: "",
                    createTime: "",
                    dropOutCount: "",
                    id: "",
                    isFavourableTax: "",
                    materialId: "",
                    pageNo: 0,
                    pageSize: 0,
                    params: {},
                    remark: "",
                    saleDownPrice: "",
                    saleGroup: "",
                    salePricingUnit: "",
                    saleUnit: "",
                    searchValue: "",
                    startOrderNum: 0,
                    surpassDown: "",
                    surpassUp: "",
                    taxType: "",
                    taxTypeCode: "",
                    updateBy: "",
                    updateTime: "",
                },
            },
            rules: {
                materialEntity: {
                    materialProperty: [
                        {
                            required: true,
                            message: "请选择物料属性",
                            trigger: "blur",
                        },
                    ],
                    kit: [
                        {
                            required: true,
                            message: "请选择套件",
                            trigger: "blur",
                        },
                    ],
                    inventoryType: [
                        {
                            required: true,
                            message: "请选择存货类别",
                            trigger: "blur",
                        },
                    ],
                },
                materialInventoryEntity: {
                    inventoryUnit: [
                        {
                            required: true,
                            message: "请选择库存单位",
                            trigger: "blur",
                        },
                    ],
                    convertDirection: [
                        {
                            required: true,
                            message: "请选择换算方向",
                            trigger: "blur",
                        },
                    ],
                    costUnit: [
                        {
                            required: true,
                            message: "请选择成本单位",
                            trigger: "blur",
                        },
                    ],
                    currency: [
                        {
                            required: true,
                            message: "请选择币别",
                            trigger: "blur",
                        },
                    ],
                },
                materialSaleEntity: {
                    saleUnit: [
                        {
                            required: true,
                            message: "请选择销售单位",
                            trigger: "blur",
                        },
                    ],
                    salePricingUnit: [
                        {
                            required: true,
                            message: "请选择销售计价单位",
                            trigger: "blur",
                        },
                    ],
                },
                materialProcureEntity: {
                    procureUnit: [
                        {
                            required: true,
                            message: "请选择采购单位",
                            trigger: "blur",
                        },
                    ],
                    procurePricingUnit: [
                        {
                            required: true,
                            message: "请选择采购计价单位",
                            trigger: "blur",
                        },
                    ],
                    quotaMode: [
                        {
                            required: true,
                            message: "请选择配额方式",
                            trigger: "blur",
                        },
                    ],
                    dayProductionUnit: [
                        {
                            required: true,
                            message: "请选择日产量单位",
                            trigger: "blur",
                        },
                    ],
                },
                materialQualityEntity: {
                    fFirstQCControlType: [
                        {
                            required: true,
                            message: "请选择首检控制方式",
                            trigger: "blur",
                        },
                    ],
                },
                materialProductEntity: {
                    fBackFlushType: [
                        {
                            required: true,
                            message: "请选择倒冲数量",
                            trigger: "blur",
                        },
                    ],
                    fIssueType: [
                        {
                            required: true,
                            message: "请选择发料方式",
                            trigger: "blur",
                        },
                    ],
                    fOverControlMode: [
                        {
                            required: true,
                            message: "请选择超发控制方式",
                            trigger: "blur",
                        },
                    ],
                    fMinissueUnitId: [
                        {
                            required: true,
                            message: "请选择最小发料批量单位",
                            trigger: "blur",
                        },
                    ],
                    dayProductionUnit: [
                        {
                            required: true,
                            message: "请选择日产量单位",
                            trigger: "blur",
                        },
                    ],
                    fStandHourUnitId: [
                        {
                            required: true,
                            message: "请选择工时单位",
                            trigger: "blur",
                        },
                    ],
                },
                materialPlanAttribute: {
                    fPlanningStrategy: [
                        {
                            required: true,
                            message: "请选择计划策略",
                            trigger: "blur",
                        },
                    ],
                    fFixLeadTimeType: [
                        {
                            required: true,
                            message: "请选择固定提前期单位",
                            trigger: "blur",
                        },
                    ],
                    fVarLeadTimeType: [
                        {
                            required: true,
                            message: "请选择变动提前期单位",
                            trigger: "blur",
                        },
                    ],
                    fCheckLeadTimeType: [
                        {
                            required: true,
                            message: "请选择检验提前期单位",
                            trigger: "blur",
                        },
                    ],
                    fOrderIntervalTimeType: [
                        {
                            required: true,
                            message: "请选择订货间隔期单位",
                            trigger: "blur",
                        },
                    ],
                    fMaxPoqty: [
                        {
                            required: true,
                            message: "请选择最大订货量",
                            trigger: "blur",
                        },
                    ],
                    fMinPoqtyUnit: [
                        {
                            required: true,
                            message: "请选择最小订货量单位",
                            trigger: "blur",
                        },
                    ],
                    fIncreaseQtyUnit: [
                        {
                            required: true,
                            message: "请选择最小包装量单位",
                            trigger: "blur",
                        },
                    ],
                    fBaseVarLeadTimeLotSizeUnit: [
                        {
                            required: true,
                            message: "请选择固定/经济批量单位",
                            trigger: "blur",
                        },
                    ],
                    fVarLeadTimeLotSizeUnit: [
                        {
                            required: true,
                            message: "请选择变动提前期批量单位",
                            trigger: "blur",
                        },
                    ],
                    fPlanBatchSplitQtyUnit: [
                        {
                            required: true,
                            message: "请选择拆分批量单位",
                            trigger: "blur",
                        },
                    ],
                    fPlanSafeStockQtyUnit: [
                        {
                            required: true,
                            message: "请选择安全库存单位",
                            trigger: "blur",
                        },
                    ],
                    fWriteOffQtyUnit: [
                        {
                            required: true,
                            message: "请选择冲销数量单位",
                            trigger: "blur",
                        },
                    ],
                    fPlanOffsetTimeType: [
                        {
                            required: true,
                            message: "请选择时间单位",
                            trigger: "blur",
                        },
                    ],
                },
            },
            materialPropertyOptions: [
                {
                    label: "外购",
                    value: 1,
                },
                {
                    label: "自制",
                    value: 2,
                },
                {
                    label: "委外",
                    value: 3,
                },
                {
                    label: "配置",
                    value: 4,
                },
                {
                    label: "资产",
                    value: 5,
                },
                {
                    label: "特征",
                    value: 6,
                },
                {
                    label: "费用",
                    value: 7,
                },
                {
                    label: "虚拟",
                    value: 8,
                },
                {
                    label: "服务",
                    value: 9,
                },
                {
                    label: "一次性",
                    value: 10,
                },
                {
                    label: "模型",
                    value: 11,
                },
                {
                    label: "产品系列",
                    value: 12,
                },
            ],
            // 套件-基础信息
            kitOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许销售-基础信息
            allowSaleOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许采购-基础信息
            allowPurchaseOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            //允许生产
            allowProduceOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许委外
            allowOutsourceOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许库存
            allowInventoryOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许转资产
            allowAssetOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 是否使用-基本信息
            isUsedOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 是否变更中-基本信息
            isChangeOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 库存控制-库存
            isLockOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 启用周期盘点-库存
            isCheckOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 必盘点-库存
            isTrueCheckOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 盘点周期-库存
            checkCycleOptions: [
                {
                    label: "周",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
            ],
            // 启用批号-库存
            isBatchOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 启用保质期管理-库存
            qualityManageOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 批号附属信息-库存
            batchInfoOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 保质期单位-库存
            qualityUnitOptions: [
                {
                    label: "日",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
                {
                    label: "年",
                    value: 3,
                },
            ],
            // 最小库存预警-库存
            isMinInventoryOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 最大库存预警-库存
            isMaxInventoryOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 安全库存预警-库存
            isSafeInventoryOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 再订货点预警-库存
            isOrderGoodsOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 超发控制单位-销售
            controlSurpassUnitOptions: [
                {
                    label: "销售单位",
                    value: 1,
                },
                {
                    label: "库存单位",
                    value: 2,
                },
            ],
            // 销售税收优惠政策
            isFavourableTaxOptions: [
                {
                    label: "免征",
                    value: 1,
                },
                {
                    label: "不征税",
                    value: 0,
                },
            ],
            // ATP检查-销售
            atpCheckOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许退货-销售
            allowReturnsOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 不参与可发量统计-销售
            dropOutCountOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许发布订货平台-销售
            allowReleaseOrderOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 配额管理-采购
            isQuotaOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 配额方式-采购
            quotaModeOptions: [
                {
                    label: "顺序优先",
                    value: 1,
                },
                {
                    label: "固定供应商",
                    value: 2,
                },
                {
                    label: "固定比例",
                    value: 3,
                },
                {
                    label: "价格优先",
                    value: 4,
                },
            ],
            // 需要请购-采购
            isReqOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 货源控制-采购
            isControlOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 允许退料-采购
            isMaterialReturnOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 启用日排产-采购
            isDayProductionOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckIncomingOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckProductOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsFirstInspectOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckStockOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckReturnOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckDeliveryOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckEntrustedOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fCheckSubFtnMtrlOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fFirstQCControlTypeOptions: [
                {
                    label: "无",
                    value: 1,
                },
                {
                    label: "严格控制",
                    value: 2,
                },
                {
                    label: "非严格控制",
                    value: 3,
                },
            ],
            // 启用库存周期复检-质量
            fEnableCyclistQCSTKOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            // 启用库存周期复检提醒-质量
            fEnableCyclistQcstkewOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsProductLineOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsSNCarryToParentOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fBackFlushTypeOptions: [
                {
                    label: "主业务单位数量",
                    value: 1,
                },
                {
                    label: "辅库存单位数量",
                    value: 2,
                },
            ],
            fIsMainPrdOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fisecnOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIssueTypeOptions: [
                {
                    label: "直接领料",
                    value: 1,
                },
                {
                    label: "直接倒冲",
                    value: 2,
                },
                {
                    label: "调拨领料",
                    value: 3,
                },
                {
                    label: "调拨倒冲",
                    value: 4,
                },
                {
                    label: "不发料",
                    value: 5,
                },
            ],
            fbkfltimeOptions: [
                {
                    label: "汇报倒冲",
                    value: 1,
                },
                {
                    label: "入库倒冲",
                    value: 2,
                },
            ],
            fOverControlModeOptions: [
                {
                    label: "最小发料批量",
                    value: 1,
                },
                {
                    label: "允许超发",
                    value: 2,
                },
                {
                    label: "不允许超发",
                    value: 3,
                },
                {
                    label: "按损耗率超发",
                    value: 4,
                },
            ],
            fIsMinissueQtyOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsKittingOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsCompleteSetOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsEnableScheduleOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fStandHourUnitIdOptions: [
                {
                    label: "时",
                    value: 1,
                },
                {
                    label: "分",
                    value: 2,
                },
                {
                    label: "秒",
                    value: 3,
                },
            ],
            fPlanningStrategyOptions: [
                {
                    label: "MPS",
                    value: 1,
                },
                {
                    label: "MRP",
                    value: 2,
                },
                {
                    label: "无",
                    value: 3,
                },
            ],
            fFixLeadTimeTypeOptions: [
                {
                    label: "天",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
            ],
            fVarLeadTimeTypeOptions: [
                {
                    label: "天",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
            ],
            fCheckLeadTimeTypeOptions: [
                {
                    label: "天",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
            ],
            fOrderIntervalTimeTypeOptions: [
                {
                    label: "天",
                    value: 1,
                },
                {
                    label: "月",
                    value: 2,
                },
            ],
            fAllowPartDelayOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fPlanOffsetTimeTypeOptions: [
                {
                    label: "天",
                    value: 1,
                },
                {
                    label: "时",
                    value: 2,
                },
                {
                    label: "分",
                    value: 3,
                },
                {
                    label: "秒",
                    value: 4,
                },
            ],
            fIsMrpComBillOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fIsMrpComReqOptions: [
                {
                    label: "是",
                    value: 1,
                },
                {
                    label: "否",
                    value: 0,
                },
            ],
            fileList: [],
        };
    },
    methods: {
        handleClick(val) {
            // this.activeName = val.name;
        },
        handleRemove() {},
        handlePreview() {},
        submitForm(cb) {
           if (this.flag) {
             this.$refs["elForm"].validate((valid) => {
                if (!valid) {
                    this.$message.error("请完整填写信息！");
                }
                // TODO 提交表单
                editMaterialList(this.formData, "Material").then((res) => {
                    if (res.code === 200) {
                        cb();
                        this.$message.success("修改成功");
                        this.flag=false
                    }
                });
            });
           }else{
             this.$refs["elForm"].validate((valid) => {
                if (!valid) {
                    this.$message.error("请完整填写信息！");
                }
                // TODO 提交表单
                add(this.formData, "Material").then((res) => {
                    if (res.code === 200) {
                        cb();
                        this.$message.success("新增成功");
                    }
                });
            });
           }
        },
        resetForm() {
            this.$refs["elForm"].resetFields();
        },
    },
    created() {
        if (this.id!='') {
            updataMaterialList(this.id).then(res=>{                
                this.formData.materialEntity=res.data
                this.flag=true
            })
        }
    },
};
</script>
<style lang="scss" scoped></style>
